package com.woniuxy.commons.service;

import com.woniuxy.commons.bean.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: 15489  <br/>
 * Date: 2022/3/30:15:49  <br/>
 * Description:
 */

@FeignClient(name = "AUTH")
public interface AuthServer {


    @GetMapping("/auth/hasPrerms/{uname}/{perms}")
    public ResponseResult<Object> hasPerms(@PathVariable("uname") String uname, @PathVariable("perms") String perms);
}
